import {$,sayHello} from "./lib/utils"


const showHello = function(divName: string, name: string) {
  const elt = $(divName);
  elt.innerText = sayHello(name);
}

//页面加载完成
const onReady=function(){
  $("button").onclick=function(){
    showHello("greeting", "TypeScript");
  };
  
  showHello("greeting", "TypeScript");
}

document.addEventListener('DOMContentLoaded',onReady);